import numpy as np
def H0_right(x,c,d):
    if x<c-d:
        rtn=0
    elif x>c+d:
        rtn=1
    else:
        rtn=0.5+0.5*(x-c)/d
    
    return rtn

def H0_left(x,c,d):
    if x<c-d:
        rtn=1
    elif x>c+d:
        rtn=0
    else:
        rtn=0.5-0.5*(x-c)/d
    return rtn

x=-2
c=0
d=1
y=H0_left(x,c,d)
print(y)

z=np.linspace(0,10,11)
t=np.zeros_like(z)
print(t)